package org.example.pojo;

public class User {
    private int account = 0;
    private String password = "";
    private String name = "";
    private String email = "";
    private String telenumber = "";
    private String joindate = null;

    public User() { }

    public User(int account, String password, String name, String email, String telenumber, String joindate) {
        this.account = account;
        this.password = password;
        this.name = name;
        this.email = email;
        this.telenumber = telenumber;
        this.joindate = joindate;
    }

    public int getAccount() {
        return account;
    }

    public void setAccount(int account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getTelenumber() {
        return telenumber;
    }

    public void setTelenumber(String telenumber) {
        this.telenumber = telenumber;
    }

    public String getJoindate() {
        return joindate;
    }

    public void setJoindate(String joindate) {
        this.joindate = joindate;
    }

    @Override
    public String toString() {
        return "User{" +
                "account=" + account +
                ", password='" + password + '\'' +
                ", name='" + name + '\'' +
                ", email='" + email + '\'' +
                ", telenumber='" + telenumber + '\'' +
                ", joindate=" + joindate +
                '}';
    }
}
